<?php
use_helper('opParts', 'jQuery');
use_javascript('jquery.md5.js');

op_include_form('formLogin', $form, array(
  'id' => 'loginForm',
  'title' => __('Login'),
  'button' => __('Login'),
));
?>
<script type="text/javascript">
  $(document).ready(function() {
    $('#loginForm').submit(function() {
      $('#hpassword').val($.md5($('#password').val()));
      $('#password').val('');
      return true;
    });
  });
</script>